import { createAPI } from '@/utils/request'

export const list = data => createAPI('/users/', 'get', data)/* 获取用户数据 */
export const simple = data => createAPI('/users/simple', 'get', data)/* 简单用户数据 */
export const add = data => createAPI('/users', 'post', data)/* 添加用户数据 */
export const update = data => createAPI(`/users/${data.id}`, 'put', data)/* 更新用户数据 */
export const remove = data => createAPI(`/users/${data.id}`, 'delete', data)/* 删除用户数据 */
export const detail = data => createAPI(`/users/${data.id}`, 'get', data)/* 修改用户数据 */
